﻿/*------------------------------------------------
// File Description: TopMachineSetting DataBase Entity
// Author:			 Crane
// Create Time:		 2022-10-14 13:49:57
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// 层压设备设定值
    /// </summary>
    [Table(nameof(TopMachineSetting))]
    public class TopMachineSetting : BaseEntity
    {
        private string _workShopCode = string.Empty;
        private string _workShopName = string.Empty;
        private string _machineNo = string.Empty;
        private string _layer = string.Empty;

        #region Public Property

        ///<Summary>
        /// WorkShopCode
        ///</Summary>
        public string WorkShopCode
        {
            get { return string.IsNullOrWhiteSpace(_workShopCode) ? string.Empty : _workShopCode; }
            set { _workShopCode = value; }
        }

        ///<Summary>
        /// WorkShopName
        ///</Summary>
        public string WorkShopName
        {
            get { return string.IsNullOrWhiteSpace(_workShopName) ? string.Empty : _workShopName; }
            set { _workShopName = value; }
        }

        ///<Summary>
        /// MachineId
        ///</Summary>
        public int MachineId { get; set; }

        ///<Summary>
        /// MachineNo
        ///</Summary>
        public string MachineNo
        {
            get { return string.IsNullOrWhiteSpace(_machineNo) ? string.Empty : _machineNo; }
            set { _machineNo = value; }
        }

        ///<Summary>
        /// 层数
        ///</Summary>
        public string Layer
        {
            get { return string.IsNullOrWhiteSpace(_layer) ? string.Empty : _layer; }
            set { _layer = value; }
        }

        ///<Summary>
        /// 腔体
        ///</Summary>
        public int Cavity { get; set; }

        ///<Summary>
        /// 上真空延迟时间
        ///</Summary>
        public decimal? UpperVacuumDelayTime { get; set; }

        ///<Summary>
        /// 抽真空时间
        ///</Summary>
        public decimal? VacuumPumpingTime { get; set; }

        ///<Summary>
        /// 加压1压力
        ///</Summary>
        public decimal? Pressure1 { get; set; }

        ///<Summary>
        /// 加压1延时
        ///</Summary>
        public decimal? PressureDelayTime1 { get; set; }

        ///<Summary>
        /// 加压2压力
        ///</Summary>
        public decimal? Pressure2 { get; set; }

        ///<Summary>
        /// 加压2延时
        ///</Summary>
        public decimal? PressureDelayTime2 { get; set; }

        ///<Summary>
        /// 加压3压力
        ///</Summary>
        public decimal? Pressure3 { get; set; }

        ///<Summary>
        /// 层压时间
        ///</Summary>
        public decimal? TopTime { get; set; }

        ///<Summary>
        /// 下充气时间
        ///</Summary>
        public decimal? InflationTime { get; set; }

        ///<Summary>
        /// 温度设定值
        ///</Summary>
        public decimal? Temp { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 层压设备设定值
        /// </summary>
        public virtual DbSet<TopMachineSetting> TopMachineSettings { get; set; }
    }
}